package org.deng.learn.designpattern.composite;

/**
 * @Author DengLibin
 * @Date 19-5-5
 * @Time 上午11:25
 * @Desc 叶子节点
 */
public class Leaf implements Component {
    private String name;
    public Leaf(String name){
        this.name = name;
    }
    @Override
    public void process() {
        System.out.println(name+"叶子节点process");
    }
}
